package com.gmail.liulijuan;

public class YangHuiTriangle {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		int m=5;
		int n=m*2-1;
		for (int i = 1; i< n+1; i=i+2) {
			for (int k = 1; k<= (n-i)/2; k++){
				System.out.print(" ");
			}
			for (int j = 0; j< i; j++) {
				System.out.print("*");
			}
			System.out.println("");
		}	
	}

}
